// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type='file'] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-popper[x-placement^='bottom'] {
  margin-top: 1em;
}
.el-tooltip__popper {
  max-width: 48%;
}
// fixed时table滚动条被遮住
.el-table--scrollable-x .el-table__body-wrapper {
  z-index: 1;
}
// fixed 表格中不对齐的问题
.el-table {
  overflow: auto;
}

.el-message--error {
  overflow: auto;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  max-width: 80vw;
  max-height: 80vh;
  .el-message_content {
    max-width: calc(100% - 26px);
  }
}

.el-textarea {
  .el-textarea__inner {
    padding-bottom: 16px;
    border-radius: 2px;
  }
  .el-input__count {
    bottom: 2px;
    line-height: 1;
  }

  ::-webkit-scrollbar {
    width: 6px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: none;
    border-radius: 0px;
  }
  ::-webkit-scrollbar-thumb {
    border-radius: 5px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
  }
  ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(85, 85, 85, 0.4);
    border-radius: 5px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.2);
  }
}

.el-range-editor--small {
  .el-range__close-icon {
    width: 24px;
    &::after {
      font-size: 26px;
    }
  }
}

.el-input__inner {
  border-radius: 2px;
  padding: 0 5px;
}

.el-popover {
  min-width: 80px;
}
